package service.impl;

import dao.ComptypeDao;
import entity.Comptype;
import org.springframework.stereotype.Service;
import service.ComptypeService;

import javax.annotation.Resource;
import java.util.List;

@Service("comptypeService")
public class Comptypeimpl implements ComptypeService {
    @Resource(name = "comptypeDao")
    private ComptypeDao comptypeDao;

    @Override
    public List<Comptype> list() {
        return comptypeDao.list1();
    }

    @Override
    public int add(String name) {
        return comptypeDao.add(name);
    }
}
